<template>
  <div id="app">
    <el-container>
      <el-header>
        <div id="nav">
          <div style="font-size: 18px;font-weight: 600;">this is base app</div>
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px" style="padding-top: 50px">
          <el-menu
            background-color="#D3DCE6"
            default-active="2"
            class="el-menu-vertical-demo"
            >
            <el-menu-item index="0">
              <i class="el-icon-star-on"></i>
              <span slot="title">
                <router-link to="/">base app</router-link>
              </span>
            </el-menu-item>
            <el-menu-item index="1">
              <i class="el-icon-star-on"></i>
              <span slot="title">
                <router-link to="/vue3-app/">vue3-app</router-link>
              </span>
            </el-menu-item>
            <el-menu-item index="2">
              <i class="el-icon-s-opportunity"></i>
              <span slot="title">
                <router-link to="/react-app/">react-app</router-link>
              </span>
            </el-menu-item>
            <el-menu-item index="2">
              <i class="el-icon-s-opportunity"></i>
              <span slot="title">
                <router-link to="/vue3-app-tm/">vue3-app-tm</router-link>
              </span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main style="min-height: 100vh;">
          <router-view/>
          <div id="container"></div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
  body, #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
    padding: 0;
    margin: 0;
  }

  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
